builder-tool: Don't simplify translatable="yes"
authorMatthias Clasen <mclasen@redhat.com>
Mon, 14 Sep 2015 03:24:05 +0000 (23:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 14 Sep 2015 03:24:05 +0000 (23:24 -0400)
It turns out that xgettext does not understand translatable="1",
so don't make gtk-builder-tool produce this, even though
GtkBuilder can parse it just fine.

https://bugzilla.gnome.org/show_bug.cgi?id=754928

gtk/gtk-builder-tool.c

index c5ae1c717cb46298669cda88a18b88d15698422e..7ad4733fea0096bea87d53aa46f471834804a452 100644 (file)
@@ -295,16 +295,9 @@ maybe_emit_property (MyParserData *data)
            strcmp (data->attribute_names[i], "context") == 0))
         continue;
 
-      if (strcmp (data->attribute_names[i], "translatable") == 0)
-        {
-          g_print (" %s=\"%s\"", data->attribute_names[i], canonical_boolean_value (data, data->attribute_values[i]));
-        }
-      else
-        {
-          escaped = g_markup_escape_text (data->attribute_values[i], -1);
-          g_print (" %s=\"%s\"", data->attribute_names[i], escaped);
-          g_free (escaped);
-        }
+      escaped = g_markup_escape_text (data->attribute_values[i], -1);
+      g_print (" %s=\"%s\"", data->attribute_names[i], escaped);
+      g_free (escaped);
     }
 
   if (bound)